#include "HitInfo.h"

namespace RayTracer
{
	HitInfo::HitInfo() : hitPoint(0, 0, 0), res(0), distance(0), surface(0)
	{
	}

    HitInfo::HitInfo(ISurface *surface, const Vector3D *hitPoint, float distance, int result) : res(result), distance(distance), surface(surface)
    {
		if(hitPoint != 0)
		{
			this->hitPoint = *hitPoint;
		}
    }
};
